<div style="margin: 15px 0px 0px 15px">
	<h3>Cập nhật thông tin khách hàng</h3><hr />
	<div style="margin-top: 30px;  margin-left: 60px;">
	<div style="background: yellow;">
		<?php echo validation_errors();?>	
	</div>
		<?php $attrs = array('class'=>'frm_update_customer', 'id'=>'frm_update_customer')?>
		<?php echo form_open_multipart(base_url().'index.php/customer/update/'. $id, $attrs)?>
		<table cellpadding="10">
			<tr>
				<td width="150"><?php echo form_label('Họ tên')?></td>
				<td><?php echo form_label( $name )?></td>
			</tr>
			<tr>
				<td><?php echo form_label('Tài khoản')?></td>
				<td><?php echo form_label( $username )?></td>
			</tr>
			<tr>
				<td><?php echo form_label('Email')?></td>
				<td><?php echo form_label($email) ?></td>
			</tr>
			<tr>
				<td><?php echo form_label('Điện thoại')?></td>
				<td><?php echo form_label($phone) ?></td>
			</tr>
			<tr>
				<td><?php echo form_label('Địa chỉ')?></td>
				<td><?php echo form_label($address) ?></td>
			</tr>
			<tr>
				<td><?php echo form_label('Tỉnh/Thành phố')?></td>
				<td>
					<?php $provinces = array('Hà Nội'=>'Hà Nội', 'TP Hồ Chí Minh'=>'TP Hồ Chí Minh');?>
					<?php echo form_dropdown('province',$provinces, $province)?>
					
					<?php echo form_label('Quận/Huyện')?>
					<?php $districs = array('Đống Đa'=>'Đống Đa','Cầu Giấy'=>'Cầu Giấy','Ba Đình' => 'Ba Đình','Hoàn Kiếm' => 'Hoàn Kiếm');?>
					<?php echo form_dropdown('district',$districs, $district)?>
				</td>
			</tr>
			<tr>
				<td><?php echo form_label('Hình ảnh')?></td>
				
				<td><?php /*echo form_upload(array('name'=>'avatar'))*/?>
				<img src="<?php echo base_url(). $avatar ?>" style="display: block"/>
				</td>
			</tr>
			<tr>
				<td><?php echo form_label('Nhóm khách hàng')?></td>
				<td><?php echo form_dropdown('group',array('Online'=>'Online web','Offline' => 'Offline'), $group)?></td>
			</tr>
			<tr>
				<td><?php echo form_label('Trạng thái')?></td>
				<td><?php echo form_dropdown('active_status',array('Kích hoạt' => 'Kích hoạt','Chưa kích hoạt' => 'Chưa kích hoạt'), $active_status)?></td>
			</tr>
			<tr>
				<td><?php echo form_label('Mô tả')?></td>
				<td><p><?php echo $description;?></p></td>
			</tr>
			<tr>
				<td><a href = '<?php echo base_url()."index.php/customer"?>'>Back</a></td>
				<td>
				</td>
			</tr>
		</table>
	</form>
	</div>
</div>